// 建议自己重新写一个名称！
const TokenKey = 'HAOKE'
const Citykey='CITY'
const TokenId = 'vue-token'
export function getToken () {
  return localStorage.getItem(TokenKey)
}

export function setToken (token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken () {
  return localStorage.removeItem(TokenKey)
}

export function getCityId () {
  // 默认为北京
  return localStorage.getItem(Citykey)||'{"label":"北京","value":"AREA|88cff55c-aaa4-e2e0"}'
}

export function setCityId (cityId) {
  return localStorage.setItem(Citykey, cityId)
}

export function removeCityId () {
  return localStorage.removeItem(Citykey)
}


export function getId () {
  return localStorage.getItem(TokenId)
  }
  
  export function setId (token) {
  return localStorage.setItem(TokenId, token)
  }
  export function removeId () {
  return localStorage.removeItem(TokenId)
  }